package com.fcgzs.springboot.controller;

import com.fcgzs.springboot.service.SetmealService;
import com.fcgzs.springboot.util.PageResult;
import com.fcgzs.springboot.util.Result;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController //支持Rest编程风格
@RequestMapping("/setmeal")
public class SetmealController {
    @Reference
    private SetmealService setmealService;
    //分页方法
    @RequestMapping("/querySetmealInfo")
    public PageResult querySetmealInfo(Integer mark){
        return setmealService.querySetmealPageInfo(null,mark);
    }
    //移动端：展示套餐详情
    @RequestMapping("/querySetmealDetail")
    private Result querySetmealDetail(Integer id){
        return setmealService.querySetmealDetail(id);
    }

}
